<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <style>
      .outBox {
        background-color: #fff;
        width: 90vw;
        height: 90vh;
        margin: 5vh 5vw;
        background-image: url('./image/login.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: right;
        display: flex;
        align-items: center;
        box-shadow: 0 0 60px -10px #87c5fe;
      }
      .loginBox {
        width: 350px;
        height: 400px;
        margin-left: 15vw;
      }
      .loginTitle {
        width: 100%;
        font-size: 26px;
        font-weight: 700;
        text-align-last: justify;
        font-family: "Microsoft YaHei";
        margin-bottom: 64px;
      }
      .inputBox {
        height: 40px;
        width: 100%;
        border-radius: 20px;
        position: relative;
        margin-bottom: 36px;
        line-height: 40px;
      }
      .icon {
        bottom: 0;
        left: 16px;
        margin: auto;
        position: absolute;
        top: 0;
        width: 24px;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 20px;
      }
      .inputBox > .user {
        background-image: url('./image/userName.png');
      }
      .inputBox:hover > .user {
        background-image: url('./image/userFocus.png');
      }
      /* .input-login:focus + .user {
        background-image: url('./image/userFocus.png')!important;
      } */
      .inputBox > .key {
        background-image: url('./image/key.png');
      }
      .inputBox:hover > .key {
        background-image: url('./image/keyFocus.png');
      }
      .errorArea {
        font-size: 14px;
        color: red;
        position: relative;
        top: 32px;
        left: 30px;
        animation: 0.5s blink 2 steps(1); /* 或 step-end */
      }

      @keyframes blink {
        50% { color: transparent; }
      }
      .input-login {
        bottom: 0;
        box-sizing: border-box;
        left: 0;
        margin: 0;
        border: 0;
        background-color: transparent;
        padding-inline-start: 50px;
        position: absolute;
        top: 0;
        font-size: 16px;
        outline:none;
      }
      .w-100 {
        width: 100%;
      }
      .loginBtn {
        width: 100%;
        height: 50px;
        border-radius: 25px;
        background-color: #87c5fe;
        text-align:center;
        font-size: 25px;
        color: #fff;
        line-height: 50px;
        margin-top: 20px;
        display: inline-block;
      }
      .v-code-box {
        height: 40px;
        width: 100%;
        position: relative;
        margin-bottom: 36px;
        line-height: 40px;
        display: flex;
      }
      .inputBox > .v-code {
        width: 100%;
      }
      .v-code-gas {
        width: 10%;
        height: 40px;
      }
      .v-code-text {
        height: 40px;
        width: 50%;
        border-radius: 20px;
      }
      .input-bg {
        background-color: #f5f8ff;
      }
      .v-code-info {
        height: 40px;
        width: 40%;
        border-radius: 20px;
      }
    </style>
  </head>
  <body>
    <div class="outBox">
      <div class="loginBox">
        <div class="loginTitle">
          咔酷咔新能源AI云平台登录
        </div>
        <div class="inputBox input-bg">
          <div class="icon user"></div>
          <input class="w-100 input-login" type="text" placeholder="请输入用户名" />
          <div class="errorArea">请输入正确的用户名</div>
        </div>
        <div class="inputBox input-bg">
          <div class="icon key"></div>
          <input class="w-100 input-login" type="password" placeholder="请输入密码" />
          <div class="errorArea">密码错误</div>
        </div>
        <div class="v-code-box">
          <div class="v-code-text input-bg">
            <div class="icon"></div>
            <input class="input-login v-code" id="captcha" name="captcha" type="text" style="padding-inline-start:35px;" placeholder="请输入验证码" />
            <div class="errorArea">验证码错误</div>
          </div>
          <div class="v-code-gas"></div>
          <div class="v-code-info input-bg"></div>
        </div>
        <div class="loginBtn">
          登 录
        </div>
      </div>
    </div>
  </body>
</html>